{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\LT-054912\surfdrive\Diffusion\dataverse files\Stata commands to replicate figure1.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}28 Aug 2023, 12:51:36
{txt}
{com}. 
. use "rawdata.dta", clear
{txt}
{com}. 
. **Renaming some labels to make them consistent with the final labels used in mansucript
. replace family_dynamic1="Christian conservatism" if family_dynamic1=="Protestants"
{txt}(0 real changes made)

{com}. replace family_dynamic1="Unite language communities" if family_dynamic1=="Unite transborder language communities"
{txt}(371 real changes made)

{com}. replace family_dynamic1="Christian conservatism" if family_dynamic1=="Protestants"
{txt}(0 real changes made)

{com}. replace family_dynamic1="Anti-EU" if family_dynamic1=="Anti-Europe"
{txt}(371 real changes made)

{com}. replace family_dynamic1="Pro-EU" if family_dynamic1=="Pro-Europe"
{txt}(371 real changes made)

{com}. replace family_dynamic1="New Left" if family_dynamic1=="Other New Left"
{txt}(371 real changes made)

{com}. 
. keep if elec_year>=1961
{txt}(5,698 observations deleted)

{com}. 
. bys family_dynamic1 elec_year: egen entryfamyear=sum(totentry2)
{txt}
{com}. bys family_dynamic1 elec_year: gen i=_n
{txt}
{com}. keep if i==1
{txt}(17,538 observations deleted)

{com}. 
. keep family_dynamic1 elec_year entryfamyear
{txt}
{com}. 
. sort family_dynamic1
{txt}
{com}. twoway  line entryfamyear elec_year, by(family_dynamic1, col(7) iscale(0.37) note("")) scheme(plottig)  xtitle("") ytitle("") xsize(9) ysize(12) 
{res}{txt}
{com}. graph export "Figure1.tif", replace
{txt}{p 0 4 2}
(file {bf}
Figure1.tif{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
Figure1.tif{rm}
saved as
TIFF
format
{p_end}

{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\LT-054912\surfdrive\Diffusion\dataverse files\Stata commands to replicate figure1.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}28 Aug 2023, 12:51:50
{txt}{.-}
{smcl}
{txt}{sf}{ul off}